<?php
/* 
* @Author: Jerry-chen
* @Date:   2014-07-21 00:30:17
* @Last Modified time: 2014-07-23 12:17:11
* @Last Modified by: Jerry-chen<uranusbill@163.com>
* @ Copyright (c) 2014 http://www.cooldreamer.com All rightsreserved.
*/
class OrderlistModel extends Model
{
	//指定表
	public $table = 'orderlist';
	 public function add_($data=null)
	{
		return $this->add($data);
	}
	/**
	 * 查找所有
	 */
	public function get_all($where=null,$field=null)
	{
		return $this->where($where)->field($field)->all();
	}
	/**
	 * [get_one 取得一个数据]
	 * @return [type] [description]
	 */
	public function get_one($where=null,$field=null)
	{
		return $this->where($where)->field($field)->find();
	}
}